IBM Books

MAS V3.4 Protocol Reference V1


Configuring and Monitoring OSPF

This chapter describes how to configure the Open Shortest Path First (OSPF) Protocol. OSPF is an Interior Gateway Protocol (IGP). The router supports the following IGPs for building the IP routing table, Open Shortest Path First (OSPF) Protocol and RIP Protocol. OSPF is based on link-state technology or the shortest-path first (SPF) algorithm. RIP is based on the Bellman-Ford or the distance-vector algorithm. This chapter includes the following sections:


Accessing the OSPF Configuration Environment

To access the OSPF configuration environment, enter the following command at the Config> prompt:

   Config> protocol ospf
   Open SPF-based Routing Protocol configuration monitoring
   OSPF Config>

OSPF Configuration Commands

Before you can use OSPF, you must configure it using the OSPF configuration commands. The following section summarizes and then explains the OSPF commands.
Note:Except for the commands noted at Dynamically Changing OSPF Configuration Parameters, which cause OSPF to restart immediately with the changed parameters, the OSPF configuration commands are not effective immediately. They remain pending until you issue the Talk 5 reset ospf command.
Enter these commands at the OSPF config> prompt. Table 23 shows the commands.

Table 23. OSPF Configuration Command Summary
 Command   Function 
? (Help) Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help".
 Add   Adds to already existent OSPF information. You can add ranges to areas, and neighbors to non-broadcast networks. 
 Delete   Deletes OSPF information from SRAM. 
 Disable   Disables the entire OSPF protocol, AS boundary routing capability, demand circuit capability, or IP multicast routing. 
 Enable   Enables the entire OSPF protocol, AS boundary routing capability, demand circuit capability, or IP multicast routing. 
 Join   Configures the router to belong to one or more multicast groups. 
 Leave   Removes the router from membership in multicast groups. 
 List   Displays OSPF configuration. 
 Set   Establishes or changes the configuration information concerning OSPF areas, interfaces, non-broadcast networks, or virtual links. This command also allows you to set the way in which OSPF routes are compared with information gained from other routing protocols. 
Exit Returns you to the previous command level. See "Exiting a Lower Level Environment".

Response to OSPF Configuration Commands

Except for the commands noted at Dynamically Changing OSPF Configuration Parameters, which cause OSPF to restart immediately with the changed parameters, the OSPF configuration (Talk 6) commands do not become effective immediately. They remain pending until you issue the Talk 5 reset ospf command.

Add

Use the add command to add more information to already existing OSPF information. With this command you can add ranges to areas as well as neighbors to non-broadcast networks.

Syntax:

add
nssa range . . .
range . . .
neighbor . .

nssa-range area# IP-address IP-address-mask inhibit-advertisement external-LSA-tag
Adds a range for external address summarization to the specified not-so-stubby-area (NSSA). NSSA ranges are defined by an IP address/mask pair and define the set of external routes that are to be aggregated or confined to the NSSA. When the router is an area border router and is elected as the NSSA translator for the NSSA, the ranges will be used to originate type 5 LSAs (this is aggregation).

  1. The area number indicates the NSSA area to which the range will be added:

    Valid Values: The area number of any configured OSPF NSSA. The set area command is used to configure the NSSA.

    Default Value: none

  2. The IP address is the IP address for the NSSA range. NSSA external routes are encompassed by the range if they equal this address when logically ANDed with the IP address mask.

    Valid Values: Any valid IP address.

    Default Value: none

  3. The IP address mask is the address mask that identifies the range routes that the range encompasses.

    Valid Values: Any valid IP address mask. However, when the mask is logically ANDed with the range IP address, the resulting value should equal that address.

    Default Value: none

  4. The parameter inhibit advertisement indicates whether or not an OSPF type 5 advertisement is originated when there are NSSA external routes that fall within the specified range. The default value No indicates that OSPF type 5 advertisements should be originated.

    Valid Values: Yes or no

    Default Value: No

  5. The parameter external LSA tag value is a 4-byte hexidecimal value. It allows manual configuration of a tag to be advertised with the type 5 LSA OSPF external routes. OSPF routers receiving the advertisement can then recognize the tag and handle those routes uniquely. This parameter is not applicable if yes is specified for inhibit advertisement.

    Valid Values: X'0-9', X'A-F', and X'a-f'.

    Default Value: None. The advertised tag will be generated as if the type 5 LSA were originated by the router.

Example: add nssa-range

          NSSA Area ID [0.0.0.1]? 
          IP Address [0.0.0.0]? 10.1.0.0
          IP Address Mask [0.0.0.0]? 255.255.0.0
          Inhibit advertisement? [No]: 
          External LSA Tag Value [0]? 1CD2
          NSSA 0.0.0.1 Range 10.1.0.0/255.255.0.0 added or modified.                     

range area# IP-address IP-address-mask
Adds ranges to OSPF areas. OSPF areas can be defined in terms of address ranges. External to the area, a single route is advertised for each address range. For example, if an OSPF area were to consist of all subnets of the class B network 128.185.0.0, it would be defined as consisting of a single address range. The address range would be specified as an address of 128.185.0.0 together with a mask of 255.255.0.0. Outside of the area, the entire subnetted network would be advertised as a single route to network 128.185.0.0.

Ranges can be defined to control which routes are advertised externally to an area. There are two choices:

Ranges cannot be used for areas that serve as transit areas for virtual links. Also, when ranges are defined for an area, OSPF will not function correctly if the area is partitioned but is connected by the backbone.

Example:

add range 0.0.0.2 128.185.0.0 255.255.0.0

inhibit advertisement ? [No]

  1. The area number has:

    Valid Values: Any valid area number

    Default Value: none

  2. The IP address has:

    Valid Values: Any valid IP address.

    Default Value: none

  3. The IP address mask has:

    Valid Values: Any valid IP address mask.

    Default Value: none

neighbor
Configures neighbors adjacent to the router over this interface. In non-broadcast multi-access networks, neighbors need to be configured only on those routers that are eligible to become the designated router. In point-to-multipoint networks, at least one end of every logical connection must have a configured neighbor. For point-to-multipoint networks, an alternate TOS 0 cost can be configured. If no cost is configured, the interface cost is used.

Example: add neighbor

            Interface IP address [0.0.0.0]? 128.185.138.19
            IP Address of Neighbor [0.0.0.0]? 128.185.138.21
            Can that router become Designated Router on this net [Yes]?
            Alternate TOS 0 cost [0]? 100
 
  1. The Interface IP address has:

    Valid Values: Any valid IP address.

    Default Value: None

  2. The IP Address of Neighbor has:

    Valid Values: Any valid IP address

    Default Value: None

  3. Answer the question, Can that router become designated router on this net? For point-to-multipoint interfaces, this parameter is not applicable and should be set to "No".

    Valid Values: Yes or No

    Default Value: Yes

  4. Alternate TOS 0 cost allows an alternate cost to be used.

    Valid Values: 0 - 65534

    Default Value: 0 (indicates that interface cost should be used).

Delete

Use the delete command to delete OSPF information from SRAM.

Syntax:

delete
area . . .
interface . . .
nssa-range . . .
neighbor . . .
non-broadcast . . .
range . . .
virtual-link

area area#
Deletes OSPF areas from the current OSPF configuration.

Example: delete area 0.0.0.1

The area number has:

Valid Values: Any valid area number.

Default Value: none

interface interface-IP-address
Deletes an interface from the current OSPF configuration.

Example: delete interface 128.185.138.19

The interface IP address has:

Valid Values: Any valid IP address.

Default Value: none

nssa range area# IP-address IP-address-mask
Deletes a range for external address summarization from the specified NSSA area.

  1. The area number indicates the NSSA area from which the range will be deleted.

    Valid Values: Any configured OSPF NSSA

    Default Value: none

  2. The IP address is the IP address for the NSSA range to be deleted.

    Valid Values: Any valid IP address.

    Default Value: none

  3. The IP address mask is the address mask that identifies the range to be deleted.

    Valid Values: Any valid IP address mask.

    Default Value: none

Example: delete nssa-range

          NSSA Area ID [0.0.0.1]? 
          IP Address [0.0.0.0]? 10.1.0.0
          IP Address Mask [0.0.0.0]? 255.255.0.0
          NSSA 0.0.0.1 Range 10.1.0.0/255.255.0.0 0 deleted.

neighbor interface-IP-address neighbor-IP-address
Deletes configured neighbors from the current OSPF configuration.

Example: delete neighbor

            Interface IP address [0.0.0.0]? 128.185.138.19
            IP Address of Neighbor [0.0.0.0]? 128.185.138.21
  1. The interface IP address has:

    Valid Values: Any valid IP address.

    Default Value: none

  2. The neighbor IP address has:

    Valid Values: Any valid IP address.

    Default Value: none

non-broadcast interface-IP-address
Deletes non-broadcast network information from the current OSPF configuration.

Example: delete non-broadcast 128.185.133.21

  1. The interface IP address has:

    Valid Values: Any valid IP address.

    Default Value: none

range area# IP-address
Deletes ranges from OSPF areas.

Example: delete range 0.0.0.2 128.185.0.0 255.255.0.0

  1. The area number of the range has:

    Valid Values: Any valid area address

    Default Value: none

  2. The IP Address of Range has:

    Valid Values: Any valid IP address.

    Default Value: none

  3. The IP Address Mask of Range has:

    Valid Values: Any valid IP address mask.

    Default Value: none

virtual-link
Deletes a virtual link that you have set using the set virtual-link command.

Example: delete virtual-link

            Virtual endpoint (Router ID) [0.0.0.0]? 10.1.1.1
            Link's transit area [0.0.0.1]? 0.0.0.2
  1. The virtual endpoint (router ID) that defines the ID of the virtual neighbor has:

    Valid Values: Any valid IP address.

    Default Value: none

  2. The link's transit area has:

    Valid Values: Any valid area address.

    Default Value: 0.0.0.1

Disable

Use the disable command to disable the entire OSPF protocol, point-to-multipoint topology for an interface, demand circuit capability, or AS boundary routing capability.

Syntax:

disable
as boundary routing
demand-circuits
least-cost-ranges
multicast forwarding
ospf routing protocol
p2mp
rfc1583compatibility
subnet

as boundary routing
Disables the AS boundary routing capability. When disabled, the router will not import external information into the OSPF domain.

Example: disable as boundary routing

demand-circuits
Disables the demand circuit capability. When disabled, the router will not indicate that it supports demand circuit processing in its router link's Link State Advertisement (LSA) and will not originate any LSAs with the DoNotAge bit set. If one router in the routing domain or OSPF stub area does not support demand circuits, none of the routers in the routing domain or OSPF stub area will originate DoNotAge LSAs.

Example: disable demand-circuits

least-cost-ranges
Disables the calculation of OSPF area ranges based on the cost of the closest (lowest cost) component network. This option is disabled as a default.

multicast forwarding
Disables IP multicast routing on all interfaces. When disabled, the router will not forward IP multicast (Class D) datagrams.

Example: disable multicast forwarding

OSPF routing protocol
Disables the entire OSPF protocol.

Example: disable OSPF routing protocol

P2MP IP-interface
Overrides the point-to-multipoint (P2MP) operation for a broadcast network.

The IP interface is the address of an interface to a broadcast network that has been configured as a point-to-multipoint network using the enable p2mp command.

Valid Values: valid IP address of any configured OSPF interface

Default Value: none

RFC1583 Compatibility
Disables the AS External route selection that is compatible with RFC 1583. It is recommended that you do not disable RFC1583 compatibility unless you have the same external route accessible through more than one OSPF area and you are experiencing routing loop problems similar to those described in RFC2178. The default is enabled.

Example: disable rfc1583Compatibility

subnet
For an interface to a point-to-point serial line, this option disables the advertisement of a stub route to the subnet that represents the serial line rather than the host route for the other router's address. You must supply this router's address for the interface to identify it.

Example:

OSPF Config> disable subnet
Interface IP address [0.0.0.0]? 8.24.3.1
The interface IP address has:

Valid Values: Any valid IP address.

Default Value: none

Enable

Use the enable command to enable the entire OSPF protocol, the advertisement of a stub to route to a subnet, point-to-multipoint topology for a broadcast interface, demand circuit capability, or AS boundary routing capability.

Syntax:

enable
as boundary routing
demand-circuits
least-cost-ranges
multicast forwarding
ospf routing protocol
p2mp
rfc1583compatibility
send outage-only
subnet

as boundary routing
Enables the AS boundary routing capability which allows you to import routes learned from other protocols, for example, BGP, RIP, and statically configured information, into the OSPF domain. For additional information on the use of the enable command, see "Configuring OSPF".

If you do not import subnet routes, OSPF will import only external routes that are network routes. See Default, Network, Subnet and Host Routes.

You can also specify whether to import aggregate routes into the OSPF domain. See Route Aggregation for more information.

An option within this command allows you to use a route filter policy to determine which routes are imported and the specific details of their advertisement including OSPF external type, metric, tag value (usually the number of the AS), and protocol. See Route Filter Policy Configuration for information about configuring a route filter policy. Example 1 shows AS boundary routing configuration when not using a route filter policy and Example 2 shows AS boundary routing configuration using a route filter policy.

Example 1:

 enable as boundary routing
 Use route policy? [No]:
 Import BGP routes? [No]
 Import RIP routes? [No]
 Import static routes? [No]
 Import direct routes? [No] yes
 Import subnet routes? [Yes]
 Import aggregate routes? [No]:
 Always originate default route? [No] yes
 Originate as type 1 or 2 [2]? 2
 Default route cost [1]?
 Default forwarding address [0.0.0.0]? 10.1.1.1   

Example 2:

 enable as boundary routing
Use route policy? [No]: Yes
Router Policy Identifier [1-15 characters] [ ]? ospf-import
Always originate default route? [No]: 
  1. The Use route policy question indicates whether a configured route policy is used to determine which non-OSPF routes are imported into OSPF as OSPF external routes. If this question is answered yes, many of the questions are no longer displayed because they are not applicable when routing policy is configured. Routing policy provides more granularity by specifying which routes are imported.

    Valid Values: yes or no

    Default Value: no

  2. The Router Policy Identifier question asks for the character string that identifies a configured route filter policy.

    Valid Values: a 1 to 15-character ASCII string

    Default Value: none

  3. The Import BGP question indicates whether the BGP routes will be imported into OSPF as OSPF external routes.

    Valid Values: Yes or No

    Default Value: No

  4. The Import RIP question indicates whether the RIP routes will be imported into OSPF as OSPF external routes.

    Valid Values: Yes or No

    Default Value: No

  5. The Import static question indicates whether the static routes will be imported into OSPF as OSPF external routes.

    Valid Values: Yes or No

    Default Value: No

  6. The Import direct question indicates whether the direct routes will be imported into OSPF as OSPF external routes.

    Valid Values: Yes or No

    Default Value: No

  7. The Import subnet question indicates whether the subnet routes will be imported into OSPF as OSPF external routes.

    Valid Values: Yes or No

    Default Value: Yes

  8. The Always originate default route question indicates whether to unconditionally originate a default route in the form of an OSPF external advertisement.

    Valid Values: Yes or No

    Default Value: No

  9. The Originate as type 1 or 2 question indicates whether the OSPF-originated default will have an AS external metric type of 1 or 2. Type 1 metrics are considered in the same context as OSPF costs while type 2 metrics are considered higher than any OSPF metric.

    Valid Values: 1 or 2

    Default Value: 2

  10. The Default route cost is the parameter that specifies the cost that OSPF associates with the default route to its area border router. The cost is used to determine the shortest path for the default route to its area border router.

    Valid Values: 0 to 16777215

    Default Value: 1

  11. The Default forwarding address is the parameter that specifies the forwarding address that will be used in the imported default route.

    Valid Values: a valid IP address

    Default Value: none

multicast forwarding
Enables the forwarding of IP multicast (Class D) datagrams. When enabling multicast routing, you are also prompted whether you want to forward IP multicast datagrams between OSPF areas. To run MOSPF (OSPF with multicast extensions), a router currently running OSPF needs only to use this command. You do not need to reenter its configuration information.

Example: enable multicast forwarding

            Inter-area multicasting enabled (Yes or No): yes

demand-circuits
Enables demand circuit processing for the router. The router will indicate that it supports demand circuit processing in its router link's Link State Advertisement (LSA). The default is enabled so that demand circuits can be deployed without reconfiguring every router in the OSPF routing domain.
OSPF Config> enable demand-circuits

least-cost-ranges
Enables the calculation of OSPF area ranges based on the cost of the closest (lowest cost) component network. Enabling this parameter will be necessary for compatibility with IBM 6611s acting as Area Border Routers (ABR) for the same area. It can also be used in situations where using the lowest cost component network will significantly reduce the number of OSPF LSA re-originations due to cost changes. This option is disabled as a default.

OSPF routing protocol
Enables the entire OSPF protocol. When enabling the OSPF routing protocol, you must supply the following two values that will be used to estimate the size of the OSPF link state database:

P2MP IP-interface
Overrides the default network type for a broadcast network to force point-to-multipoint operation. All routers on the subnet should have the same specification and will require neighbor definition as for a network type which is inherently point-to-multipoint, for example, Frame Relay. This option is only applicable to networks which are inherently broadcast-capable, for example, LANs and ATM ELANS.

The IP interface indicates the OSPF interface which is to be a P2MP network.

Valid Values: any configured OSPF interface

Default Value: none

RFC1583Compatibility
Enables the AS External route selection that is compatible with RFC 1583. The default is enabled.

Example: enable rfc1583Compatibility

subnet
For an interface to a point-to-point serial line, this option enables the advertisement of a stub route to the subnet that represents the serial line rather than the host route for the other router's address. You must supply this router's address for the interface to identify it.

Example:

OSPF Config> enable subnet
Interface IP address [0.0.0.0]? 8.24.3.1
The interface IP address has:

Valid Values: Any valid IP address.

Default Value: none

Join

Use the join command to configure the router as a member of a multicast group. When the router is the member of a multicast group, it responds to PINGs and SNMP queries sent to the group address.

To request group membership in a more immediate way (a restart/reload is not required), issue the join command from OSPF monitoring. Also, from OSPF monitoring, the join command keeps track of the number of times a particular group is joined. IP multicast groups joined through OSPF monitoring are not retained across router restarts and reloads.

Syntax:

join
multicast-group-address

Example: join 224.185.0.0

The multicast group address parameter specifies the IP class D group/multicast address.

Valid Values: Class D IP address from 224.0.0.1 to 239.255.255.255

Default Value: None

Leave

Use the leave command to remove a router's membership from a multicast group. This will prevent the router from responding to PINGs and SNMP queries sent to the group address.

To delete group membership in a more immediate way (a restart/reload is not required), issue the leave command from OSPF monitoring. Also, from OSPF monitoring, group membership is not deleted until the number of leaves executed equals the number of joins previously executed.

Syntax:

leave
multicast-group-address

Example: leave 224.185.0.0

The multicast group address parameter specifies the IP class D group/multicast address.

Valid Values: Class D IP address from 224.0.0.1 to 239.255.255.255

Default Value: none

List

Use the list command to display OSPF configuration information.

Syntax:

list
all
areas
interfaces
neighbors
non-broadcast
virtual-links

all
Lists all OSPF-related configuration information.

Example: list all

                    --Global configuration--
            OSPF Protocol:          Enabled
            # AS ext. routes:       300
            Estimated # routers:    100
            Maximum LSA Size:       2048
            External comparison:    Type 2
            RFC 1583 compatibility: Disabled
            AS boundary capability: Enabled
            Import external routes: BGP RIP STA DIR SUB
            Orig. default route:    No (0,0.0.0.0)
            Default route cost:     (1, Type 2)
            Default forward. addr.: 0.0.0.0
            Multicast forwarding:   Enabled
             Inter-area multicast:   Enabled
            Demand Circuits:        Enabled
            Least Cost Ranges:      Disabled
            LSA Max Random Initial Age:    0
 
                    --Area configuration--
        Area ID          AuType          Stub? Default-cost Import-summaries?
        0.0.0.0          0=None          No         N/A           N/A
 
 
               --Interface configuration--
            IP address        Area    Cost  Rtrns  TrnsDly  Pri  Hello Dead
            128.185.184.11    0.0.0.1   1      5       1     1    10    60
            128.185.177.11    0.0.0.1   1      5       1     1    10    60
            128.185.142.11    0.0.0.0   1      5       1     1    10    60

 OSPF protocol   Displays whether OSPF is enabled or disabled. 
 # AS ext. routes   Displays the estimated number of Autonomous System external routes. The router cannot accept more than this number of AS external routes. 
 Estimated # routers   Displays the estimated number of routers found in the OSPF configuration. 
 Maximum LSA size   Displays the maximum size LSA that will be originated by this router. 
 External comparison   Displays the external route type used by OSPF when importing external information into the OSPF domain and when comparing OSPF external routes to RIP/BGP routes. 
 RFC 1583 compatibility   Indicates whether or not OSPF AS external route is compatible with RFC 1583. 
 AS boundary capability   Displays whether the router will import external routes into the OSPF domain. 
 Import external   Displays which routes will be imported. 
 Orig default route   Displays whether the router will import a default into the OSPF domain. When the value is "YES", and a non-zero network number is displayed in parentheses. This indicates that the default route will be originated only if a route to that network is available. 
 Default route cost   Displays the cost and type that will be used in the imported default route. 
 Default forward addr   Displays the forwarding address that will be used for the originated default route. 
 Multicast forwarding   Displays whether IP multicast datagrams will be forwarded. 
 Demand circuits   Displays whether demand circuit processing is supported. 
 Least Cost Area Ranges   Displays whether least cost area ranges are computed. 
 LSA Max Random Initial Age   Displays the maximum initial age for self-originated LSAs. If this value is zero (the default), all LSAs will be originated with an age of 0. 
 External comparison   Displays the external route type used by OSPF when importing external information into the OSPF domain and when comparing OSPF external routes to RIP/BGP routes. 
 Inter-area multicast   Displays whether IP multicast datagrams will be forwarded between areas. 
 Area-ID   Displays the attached area ID (area summary information) 
 AuType   Displays the method used for area authentication. "Simple-pass" means a simple password scheme is being used for the area's authentication. 
 Stub area   Displays whether or not the area being summarized is a stub area. Stub areas do not carry external routes, resulting in a smaller routing database. However, stub areas cannot contain AS boundary routers, nor can they support configured virtual links. 
 OSPF interfaces   For each interface, its IP address is printed, together with configured parameters. "Area" is the OSPF area to which the interface attaches. "Cost" indicates the TOS 0 cost (or metric) associated with the interface. "Rtrns" is the retransmission interval, which is the number of seconds between retransmissions of unacknowledged routing information. "TrnsDly" is the transmission delay, which is an estimate of the number of seconds it takes to transmit routing information over the interface (it must be greater than 0). "Pri" is the interface's Router Priority, which is used when selecting the designated router. "Hello" is the number of seconds between Hello Packets sent out the interface. "Dead" is the number of seconds after Hellos cease to be heard that the router is declared down. 
 Virtual links   Lists all virtual links that have been configured with this router as end-point. "Virtual endpoint" indicates the OSPF Router ID of the other end-point. "Transit area" indicates the non-backbone area through which the virtual link is configured. Virtual links are considered treated by the OSPF protocol similarly to point-to-point networks. The other parameters listed in the command ("Rtrns", "TrnsDly", "Hello," and "Dead") are maintained for all interfaces. See the OSPF list interfaces command for more information. 

areas
Lists all information concerning configured OSPF areas.

Example: list areas

                      --Area configuration--
Area ID           Stub/NSSA Default-Cost(Type)  Inhibit-Sum/External  NSSA-Trans
0.0.0.0           Transit        N/A             N/A                   N/A
0.0.0.1           NSSA           0(2)            No /No                Elected
0.0.0.5           NSSA           5(2)            No /No                Elected
 
                      --NSSA Area ranges--        
Area ID          Address         Mask            Advertise             Tag    
0.0.0.1          193.1.1.0       255.255.255.0   No                    N/A     
0.0.0.5          192.168.0.0     255.255.0.0     Yes                   0xACEEACEE 
 
 

 Area-ID  The Area address.
 Stub/NSSA  Indicates whether or not the area is a tranist area, stub area, or not-so-stubby area (NSSA).
 Default-cost (Type)  The cost of an Area Border Router (ABR) originated default route and, for NSSAs, the configured type.
 Inhibit-Sum/External  Whether or not summary and external route advertisement is inhibited. When external route importation is inhibited, an ABR acting as an AS Boundary Router will not advertise type 7 LSAs into the area.
 NSSA-Trans  Indicates whether an ABR for NSSA will participation in the NSSA type 7 LSA translation election process or unconditionally translate type 7 LSAs to type 5 LSAs.
 NSSA Area ranges-Area ID  The OSPF area address that indicates the NSSA area to which the range belongs.
 Address/Mask  The IP address and mask that identify the NSSA.
 Advertise  Indicates whether or not an OSPF type 5 advertisement is originated when there are NSSA external routes that fall within the NSSA range.
 Tag  This is the tag, if one has been configured for this NSSA range. The tag is a manually configured 4-byte hexadecimal value that is advertised with the type 5 LSA OSPF external routes. A tag exists only if the value of Advertise is Yes.

interfaces
For each interface, its IP address is printed, together with configured parameters. "Area" is the OSPF area to which the interface attaches. "Cost" indicates the TOS 0 cost (or metric) associated with the interface. "Rtrns" is the retransmission interval, which is the number of seconds between retransmissions of unacknowledged routing information. "TrnsDly" is the transmission delay, which is an estimate of the number of seconds it takes to transmit routing information over the interface (it must be greater than 0). "Pri" is the interface's router priority, which is used when selecting the designated router. "Hello" is the number of seconds between Hello Packets sent out the interface. "Dead" is the number of seconds after Hellos cease to be heard that the router is declared down.

Example: list interfaces

OSPF Config>list interface
 
                        --Interface configuration--
IP address        Area            Auth   Cost  Rtrns  Delay  Pri  Hello   Dead
200.1.1.2         0.0.0.2           0      10      5     1     1     10     40
10.69.1.2         0.0.0.0           1       1      5     1     1     10     40
OSPF Config>list virtual-link
 
                        --Virtual link configuration--
Virtual endpoint     Transit area    Auth   Rtrns  Delay Hello  Dead
4.4.4.4              0.0.0.1           1       10    5     30   180
10.1.1.2             0.0.0.1           1       10    5     30   180
OSPF Config>
OSPF Config>list area
 
                --Area configuration--
Area ID         Stub? Default-cost Import-summaries?
0.0.0.2          No         N/A           N/A
0.0.0.0          No         N/A           N/A
0.0.0.1          No         N/A           N/A
0.0.0.3          Yes        10            Yes
Note:Multicast parameters are not displayed if multicast is disabled. Demand circuit parameters are not displayed if none of the interfaces are configured as demand circuits.

neighbors
Lists neighbors to non-broadcast networks. It displays IP address of the neighbor and the IP address of the interface to that neighbor. It also indicates whether the neighbor is eligible to become the "Designated Router" on the net and alternate TOS 0 cost for point-to-multipoint networks.

Example: list neighbors

                    --Neighbor configuration--
            Neighbor Addr     Interface Address   DR eligible?      Alternate TOS 0 Cost
            2.3.4.5           1.2.3.4             yes               0
            2.5.6.7           5.6.7.8             no                100

non-broadcast
Lists all information related to interfaces connected to non-broadcast multi-access networks. For each non-broadcast interface, as long as the router is eligible to become designated router on the attached network, the polling interval is displayed together with a list of the router's neighbors on the non-broadcast network.

Example: list non-broadcast

                    --NBMA configuration--
            Interface Addr      Poll Interval
            128.185.235.34      120

virtual-links
Lists all virtual links that have been configured with this router as end-point. "Virtual endpoint" indicates the OSPF router ID of the other end-point. "Transit area" indicates the non-backbone area through which the virtual link is configured. Virtual links are considered treated by the OSPF protocol similarly to point-to-point networks. The other parameters listed in the command ("Rtrns", "TrnsDly", "Hello," and "Dead") are maintained for all interfaces. See the OSPF list interfaces command for more information.

Example: list virtual-links

                  --Virtual link configuration--
         Virtual endpoint   Transit area   Rtrns  TrnsDly Hello Dead
         0.0.0.0            0.0.0.1         10      5     30    180

Set

Use the set command to display or change the configuration information concerning OSPF areas, interfaces, non-broadcast networks, or virtual links. This command also allows you to set the way in which OSPF routes are compared to information obtained from other routing protocols.

Syntax:

set
area
comparison
cost-internal-address
interface
non-broadcast
virtual-link
max-random-initial-lsa-age

area
Sets the parameters for an OSPF area. If no areas are defined, the router software assumes that all the router's directly attached networks belong to the backbone area (area ID 0.0.0.0). You can set an area as a stub area or as a not-so-stubby-area (NSSA).

Example: set area

          Area number [0.0.0.0]? 0.0.0.1
          Is this a stub area? [No]: 
          Is this an NSSA Area? [No]: yes
          Always perform NSSA Translation? [No]: 
          Import Local Externals? [Yes]: 
          Stub/NSSA default cost [0]? 
          Import summaries? [Yes]: 
          NSSA Type (1 or 2) for Default [2]? 

comparison
Tells the router where the BGP/RIP/static routes fit in the OSPF hierarchy. The two lower levels consist of the OSPF internal routes. OSPF internal routes take precedence over information gained from any other sources, all of which are located on a single level.

Example: set comparison

            OSPF Config> set comparison
            Compare to type 1 or 2 externals [2]?

cost internal address
Sets the cost for internal address advertisement within the internal address network in the router's type 1 LSA. If -1 is specified, the internal address is not advertised.

Example:

           OSPF Config>set cost-internal-address
           Internal Address Cost? [10]? 8             

interface
Sets the OSPF parameters for the router's network interfaces.
  1. The interface IP address is for each interface in the router.
  2. attaches to area is the area to which the interface attaches.
  3. The timer values are the same values for all routers attached to a common network segment.
    1. The retransmission interval is the interval after which a Link Request for one or more link state advertisements will be resent.

      Valid values: 1 to 65 535 seconds

      Default Value: 5

    2. The Transmission delay is an estimate of the number of seconds that it takes to transmit link-state information over the interface.

      Each link-state advertisement has a finite lifetime that is equal to the constant MaxAge (1 hour). As each link-state advertisement is sent to the particular interfaces, it is aged by this configured transmission delay. The minimum delay is 1 second.

      Valid Values: 1 to 65 535 seconds

      Default Value: 1

    3. The Hello Interval is the interval between Hello packets sent on the interface.

      Valid Values: 1 to 65 535 seconds

      Default Value: 10

    4. The Dead Router Interval

      Dead Router Interval is the interval after which a router that has not sent a Hello will be considered dead. The Dead Router Interval defaults to four times the configured Hello Interval. The value for this parameter must be greater than the Hello Interval.

      Valid Values: 2 to >= 65 535 seconds

      Default Value: 40 (or four times the configured Hello interval)

  4. The Router Priority value is used for broadcast and non-broadcast multiaccess networks to elect the designated router. For point-to-point links, this value should be 0, which means that this router must not be elected the designated router for its network.

    Valid Values: 0 to 255

    Default Value: 1

  5. The Type of service 0 cost is cost that will be used for the interface when the shortest path routes are computed for the area..

    Valid Values: 1 to 65 534

    Default Value: 1

  6. The Demand Circuit indicates whether or not the interface will be treated as a demand circuit for purposes of flooding LSAs (Link State Advertisements). Over demand circuits, LSAs will be flooded with the DoNotAge bit set over this interface and will not be flooded unless there is an actual change to the LSA. Refer to RFC 1793 for more information.

    Valid Values: yes or no

    Default Value: no

  7. The Hello Suppression indicates whether or not Hello packets will be suppressed on the interface once the neighbors reach the full state. Demand circuits must be enabled on the interface for Hello Suppression to be requested or allowed. Currently, Hello Suppression is only supported on ATM and ISDN Dial-on-Demand links. Refer to RFC 1793 for more information.

    Valid Values: allow, request, or disable

    Default Value: allow

    Allow
    Allows a neighbor to request Hello Suppression.

    Request
    Requests Hello Suppression from a neighbor.

    Disable
    Disables Hello Suppression and continues sending Hellos.
  8. The Demand Circuit Down Poll Interval indicates the duration between hello polls sent when there is a failure to send data on a demand circuit with hello suppression active. Currently, hello suppression is only supported on ATM and ISDN Dial-on-Demand links. Refer to RCF 1793 for more information.

    Valid Values: 1 to 65 535

    Default Value: 60

  9. The Authentication type defines the authentication procedure to be used for OSPF packets on the interface. The choices are 1, which indicates a simple password; or 0, which indicates that no authentication is necessary to exchange OSPF packets on the interface. When 1 is specified, the authentication key must also be specified.

    Valid Values: 0, 1

    Default Value: 0

  10. The Authentication key is the parameter that defines the password used for this OSPF area. When password authentication is used, only packets with the correct authentication key are accepted.

    Valid Values: any 1-8 characters

    Default Value: a null string

Example: set interface

            Interface IP address [0.0.0.0]? 10.69.1.2
            Attaches to area [0.0.0.0]?
            Retransmission Interval (in seconds) [5]?
            Transmission Delay (in seconds) [1]? 1
            Router Priority [1]? 1
            Hello Interval (in seconds) [10]?
            Dead Router Interval (in seconds) [40]?
            Type Of Service 0 cost [1]?
            Demand Circuit (Yes or NO) ?[No]:
            Authentication Type (0 - none, 1 - simple) [0]? 1
            Authentication Key []? AceeOSPF
            Retype Auth.  Key []? AceeOSPF
   

When responding to the prompts, supply the IP address for each interface in the router and answer the questions that follow. For the following parameters, you must enter the same value for all routers attached to a common network:

The first prompt asks for the OSPF area to which the interface attaches. For example, suppose that the interface address mask is 255.255.255.0, indicating that the interface attaches to a subnet (128.185.138.0) of network 128.185.0.0. All other OSPF routers attached to subnet 128.185.138.0 must also have their Hello interval set to 10, dead router interval set to 40, and their interface authentication key set to xyz_q.

Note that IP interfaces to point-to-point lines may be unnumbered. In this case a net index is configured instead of an IP address. This implementation of OSPF will work with these unnumbered interfaces, but to work correctly, both ends of the point-to-point line must use an unnumbered interface.

In a multicast routing configuration (multicast has been enabled), the MOSPF parameters for each OSPF interface are set to their default values. This means that:

If you want to change the MOSPF parameters, use the set interface command. You will be queried for multicast parameters (the last five parameters shown in the output display above) only if you have first enabled multicast forwarding.

On networks that lie on the edge of an autonomous system, where multiple multicast routing protocols (or multiple instances of a single multicast routing protocol) may exist, you may need to configure forwarding as data-link unicasts to avoid unwanted datagram replication. In any case, for all routers attached to a common network, the interface parameters "forward multicast datagrams" and "forward as data-link unicasts" should be configured identically.

non-broadcast
Overrides the point-to-multipoint default to select NBMA for X.25, Frame Relay or ATM networks. This parameter specifies the interval that determines the frequency of Hellos sent to neighbors that are inactive. You must set non-broadcast consistently across all interfaces that attach to the same subnetwork for OSPF to function correctly.

For Frame Relay or ATM networks, however, the set non-broadcast command is used to configure an OSPF interface as connecting to a non-broadcast multi-access network. If the set non-broadcast command is not used, the interface is assumed to be connected to a point-to-multipoint network. In Frame Relay networks, all OSPF interfaces must be configured as connecting to the same type of network (non-broadcast multi-access or point-to-multipoint), so if the set non-broadcast command is used for one router's interface, it must be configured on the interfaces for all routers attaching to the network.

Example: set non-broadcast

                Interface IP address [0.0.0.0]? 128.185.138.19
                Poll Interval [120]

The interface IP address has:

Valid Values: Any valid IP address.

Default Value: none

The NBMA Poll Interval is used to send Hello packets to inactive neighbors. (Inactive neighbors are those neighbors that the router has not heard from for a period greater than the Dead Router interval.) The router still polls these neighbors at a reduced rate. Set the NBMA Poll Interval much higher than the configured Hello Interval for the router.

Valid Values: 1 to 65535 seconds

Default Value: 120 seconds

Example: set non-broadcast

            Interface IP address [0.0.0.0]? 128.185.138.19
            Poll Interval [120]?

virtual-link
Configures virtual links between any two area border routers. To maintain backbone connectivity you must have all of your backbone routers interconnected either by permanent or virtual links. Virtual links are considered to be separate router interfaces connecting to the backbone area. Therefore, you are asked to also specify many of the interface parameters when configuring a virtual link.

Virtual links can be configured between any two backbone routers that have an interface to a common non-backbone area. Virtual links are used to maintain backbone connectivity and must be configured at both end-points.
Note:This OSPF implementation supports the use of virtual links when one end of the virtual link may be an unnumbered point to point line. For this configuration to work, the router id must be used as the source address in OSPF protocol messages sent over the virtual link. Use of the router id can be insured by configuring the internal IP address with the address used as the router id. Another requirement for this configuration to work is that the OSPF implementations at both ends of the virtual link support it.
  1. The virtual endpoint (router ID) defines the ID of the virtual neighbor.

    Valid Values: Any valid IP address.

    Default Value: none

  2. The link's transit area. is the non-backbone, non-stub area through which the virtual link is configured. Virtual links can be configured between any two area border routers that have an interface to a common non-backbone and non-stub area. Virtual links must be configured in each of the link's two end-points.

    Valid Values: 0.0.0.1 to 255.255.255.255

    Default Value: 0.0.0.1

  3. The timer values are the same values for all routers attached to a common network segment.
    1. The retransmission interval is the interval after which a Link Request for one or more link state advertisements will be resent.

      Valid Values: 1 to 65 535 seconds

      Default Value: 10

    2. The Transmission delay parameter is an estimate of the number of seconds that it takes to transmit link-state information over the interface.

      Each link-state advertisement has a finite lifetime that is equal to the constant MaxAge (1 hour). As each link-state advertisement is sent to the particular interfaces, it is aged by this configured transmission delay. The minimum delay is 1 second.

      Valid Values: 1 to 65 535 seconds

      Default Value: 5

    3. The Hello Interval is the interval between Hello packets sent on the interface.

      Valid Values: 1 to 255 seconds

      Default Value: 30

    4. The Dead Router Interval is the interval after which a router that has not sent a Hello will be considered dead. This parameter defaults to six times the configured Hello Interval and must be set to a value greater than the Hello Interval.

      Valid Values: 2 to 65 535 seconds

      Default Value: 180

  4. The Authentication type defines the authentication procedure to be used for OSPF packets on the virtual link. The choices are 1, which indicates a simple password; or 0, which indicates that no authentication is necessary to exchange OSPF packets on the interface. When 1 is specified, the authentication key must also be specified.

    Valid Values: 0, 1

    Default Value: 0

  5. The Authentication key. defines the password used for this OSPF area. When password authentication is used, only packets with the correct authentication key are accepted.

Valid Values: any 1-8 characters

Default Value: a null string

Example: set virtual-link

            Virtual endpoint  (Router ID) [0.0.0.0]? 10.1.1.2
            Link's transit area [0.0.0.1]?
            Virtual link already exists - record will be modified.
            Retransmission Interval (in seconds) [10]?
            Transmission Delay (in seconds) [5]?
            Hello Interval (in seconds) [30]?
            Dead Router Interval (in seconds) [180]?
            Authentication Type (0 - none, 1 - simple) [0] 1
            Authentication Key []? AceeOSPF
            Retype Auth. Key []? AceeOSPF

max-random-initial-lsa-age
Specifies the maximum initial age for self-originated LSAs. The default is 0 and normally should be modified only if you are experiencing problems with LSA origination synchronization.

Valid Values: 0 - 1770

Default Value: 0

Example:

OSPF Config>  set max-random-initial-lsa-age
Maximum initial LSA age [0]?

Accessing the OSPF Monitoring Environment

Use the following procedure to access the OSPF monitoring commands. This process gives you access to the OSPF monitoring process.

  1. At the OPCON prompt, enter talk 5. (For more detail on this command, refer to "The OPCON Process and Commands" in Nways Multiprotocol Access Services Software User's Guide.) For example:
        * talk 5
        +
    

    After you enter the talk 5 command, the GWCON prompt (+) displays on the terminal. If the prompt does not appear when you first enter configuration, press Return again.

  2. At the + prompt, enter the protocol ospf command to get you to the OSPF> prompt.

    Example:

        + prot ospf
        OSPF>
     
    

OSPF Monitoring Commands

This section summarizes and then explains all the OSPF monitoring commands. These commands enable you to monitor the OSPF routing protocol. Table 24 lists the OSPF monitoring commands.

Enter the OSPF monitoring commands at the OSPF> prompt.

Table 24. OSPF Monitoring Command Summary
 Command   Function 
? (Help) Displays all the commands available for this command level or lists the options for specific commands (if available). See "Getting Help".
 Advertisement   Displays a link state advertisement belonging to the OSPF database. 
 Area summary   Displays OSPF area statistics and parameters. 
 AS external   Lists the AS external advertisements belonging to the OSPF link state database. 
 Database summary   Displays the advertisements belonging to an OSPF area's link state database. 
 Dump routing tables   Displays the OSPF routes contained in the routing table. 
 Interface summary   Displays OSPF interface statistics and parameters. 
 Join   Configures the router to belong to one or more multicast groups. 
 Leave   Removes the router from membership in multicast groups. 
 Mcache   Displays a list of currently active multicast forwarding cache entries. 
 Mgroups   Displays the group membership of the router's attached interfaces. 
 Mstats   Displays various multicast routing statistics. 
 Neighbor summary   Displays OSPF neighbor statistics and parameters. 
 Ping   Continuously sends ICMP Echo Requests (or pings) a given destination, printing a line for each response received. 
 Policy   Displays any configured AS boundary router import policy. 
 Reset   Resets the OSPF configuration dynamically. 
 Routers   Displays the reachable OSPF area-border routers and AS-boundary routers. 
 Size   Displays the number of LSAs currently in the link state database, categorized by type. 
 Statistics   Displays OSPF statistics detailing memory and network usage. 
 Traceroute   Displays the complete route (hop-by-hop) to a given destination. 
 Weight   Dynamically changes the cost of an OSPF interface. 
Exit Returns you to the previous command level. See "Exiting a Lower Level Environment".

Advertisement Expansion

Use the advertisement expansion command to print the contents of a link state advertisement contained in the OSPF database. For a summary of the router's advertisements use the database command.

A link state advertisement is defined by its link state type, link state ID and its advertising router. There is a separate link state database for each OSPF area. Providing an area-id on the command line tells the software which database you want to search. The different kinds of advertisements, which depend on the value given for link-state-type, are:

Example 1 shows an expansion of a router links advertisement. The router's ID is 128.185.184.11. It is an AS boundary router and has three interfaces to the backbone area (all of cost 1). Multicast routing has been enabled. Detailed field descriptions are provided with the example.

This command has also been enhanced in two ways. First of all, when displaying router-LSAs and network-LSAs, the reverse cost of each router-to-router link and router-to-transit-network link is displayed, as well as the previously displayed forward cost. This is done because routing of multicast datagrams whose source lies in different areas/Autonomous systems is based on reverse cost instead of forward cost. In those cases where there is no reverse link (which means that the link will never be used by the Dijkstra), the reverse cost is shown as "1-way".

In addition, the LSA's OSPF options are displayed in the same manner as they were displayed in the detailed OSPF neighbor command.

New group-membership-LSAs can also be displayed. The "LS destination" of each group-membership-LSA is a group address. A router originates a group-membership-LSA for each group that has members on one or more of the router's attached networks. The group-membership-LSA for the group lists those attached transit networks having group members (the type "2" vertices), and when there are members belonging to one or more attached stub networks, or if the router itself is a member of the multicast group, a type "1" vertex whose ID is the router's OSPF router ID is included.

Syntax:

advertisement
ls-type link-state-id advertising-router area-id

Example 1: advertisement 1 128.185.184.11 0.0.0.0

            LS age:     173
            LS options:  E,MC,DC
            LS type:     1
            LS destination (ID): 128.185.184.11
            LS originator:   128.185.184.11
            LS sequence no:  0x80000047
            LS checksum:     0x122
            LS length:       60
            Router type:  ASBR,W
            # router ifcs:   3
                     Link ID:          128.185.177.31
                     Link Data:        128.185.177.11
                     Interface type:   2
                              No. of metrics: 0
                              TOS 0 metric:   3 (0)
                     Link ID:          128.185.142.40
                     Link Data:        128.185.142.11
                     Interface type:   2
                              No. of metrics: 0
                              TOS 0 metric:   4 (0)
                     Link ID:          128.185.184.0
                     Link Data:        255.255.255.0
                     Interface type:   3
                              No. of metrics: 0
                              TOS 0 metric:   1

 LS age   Indicates the age of the advertisement in seconds. 
 LS options   Indicates the optional OSPF capabilities supported by the OSPF object corresponding to the advertisement. These capabilities include: 

E
Indicates that type 5 (external advertisements) are supported in area corresponding to the advertisement. This is always set for type 5 (external advertisements).

T
Routing based on IP TOS (Type of Service) is supported.

MC
Multicast forwarding is supported. This will only be set in advertisements originated by routers with MOSPF enabled.

DC
Demand circuits are supported as described in RFC 1793.
 LS type   Classifies the advertisement and dictates its contents: 1 (router links advertisement), 2 (network link advertisement), 3 (summary link advertisement), 4 (summary ASBR advertisement), 5 (AS external link) and 6 (group-membership advertisement). 
 LS destination   Identifies what is being described by the advertisement. Depends on the advertisement type. For router links and ASBR summaries, it is the OSPF router ID. For network links, it is the IP address of the network's designated router. For summary links and AS external links, it is a network/subnet number. For group-membership advertisements, it is a particular multicast group. 
 LS originator   OSPF router ID of the originating router. 
 LS sequence number   Used to distinguish separate instances of the same advertisement. Should be looked at as a signed 32-bit integer. Starts at 0x80000001, and increments by one each time the advertisement is updated. 
 LS checksum   A checksum of advertisement contents, used to detect data corruption. 
 LS length   The size of the advertisement in bytes. 
 Router type   Indicates the level of function of the router. ASBR means that the router is an AS boundary router, ABR that the router is an area border router, and W that the router is a wildcard multicast receiver. 
 # Router ifcs   The number of router interfaces described in the advertisement. 
 Link ID   Indicates what the interface connects to. Depends on Interface type. For interfaces to routers (i.e., point-to-point links), the Link ID is the neighbor's router ID. For interfaces to transit networks, it is the IP address of the network designated router. For interfaces to stub networks, it is the network's network/subnet number. 
 Link Data   4 bytes of extra information concerning the link, it is either the IP address of the interface (for interfaces to point-to-point networks and transit networks), or the subnet mask (for interfaces to stub networks). 
 Interface type   One of the following: 1 (point-to-point connection to another router, 2 (connection to transit network), 3 (connection to stub network) or 4 (virtual link). 
 No. of metrics   The number of non-zero TOS values for which metrics are provided for this interface. 
 TOS 0 metric   The cost of the interface. In parenthesis the reverse cost of the link is given (derived from another advertisement). If there is no reverse link, "1-way" is displayed. 

The LS age, LS options, LS type, LS destination, LS originator, LS sequence no, LS checksum and LS length fields are common to all advertisements. The Router type and # router ifcs are seen only in router links advertisements. Each link in the router advertisement is described by the Link ID, Link Data, and Interface type fields. Each link can also be assigned a separate cost for each IP Type of Service (TOS); this is described by the No. of metrics and TOS 0 metric fields (the router currently does not route based on TOS, and looks at the TOS 0 cost only).

Example 2 shows an expansion of a group-membership advertisement. A group-membership advertisement for a given group/advertising router combination lists those networks directly attached to the advertising router which have group members. It also lists whether the router itself is a member of the specified group. The example below shows that network 128.185.184.0 has members of group 224.0.1.1.

Example 2: adv 6 224.0.1.1 128.185.184.114

            For which area [0.0.0.0]?
 
            LS age:     168
            LS options:  E
            LS type:     6
            LS destination (ID): 224.0.1.1
            LS originator:   128.185.184.114
            LS sequence no:  0x80000001
            LS checksum:     0x7A3
            LS length:       28
            Vertex type: 2
            Vertex ID:   128.185.184.114

 Vertex type   Describes the object having group members, one of: 1 (the router itself, or stub networks attached to the router) or 2 (a transit network). 
 Vertex ID   When the vertex type is 1, always the advertising router''s ID. When the vertex type is 2, the IP address of the transit network's designated router. 

Area Summary

Use the area summary command to view a summary display of OSPF area information or a detailed display of information for the specified area. If no area is specified or the area is not found, a summary of configured areas will be displayed. If a configured area is specified, detailed information about that area will be displayed.

Syntax:

area area-number

area number
The number that indicates the area for which detailed information is to be displayed.

Valid Values: An OSPF IP address that identifies any configured OSPF NSSA

Default Value: none

Example 1:

           OSPF>area
 
     Area ID            Type    #ifcs  #nets  #rtrs  #brdrs  DC-Status
     0.0.0.1            NSSA        2      0      2       1      On
 

 # ifcs   Indicates the number of router interfaces attached to the particular area. These interfaces are not necessarily functional. 
 # nets   Indicates the number of transit networks that have been found while doing the SPF tree calculation for this area. 
 # rtrs   Indicates the number of routers that have been found when doing the SPF tree calculation for this area. 
 # brdrs   Indicates the number of area border routers that have been found when doing the SPF tree calculation for this area. 
 DC-Status   Indicates whether demand circuit processing is active for the area. 

Example 2:

OSPF>area 0.0.0.1
 
                           Area 0.0.0.1
      Area Index:                       0 Configured Interfaces:            2
      Type:                          NSSA Inhibit Summaries:              Yes
      Stub Default Cost:                0 NSSA Default Type:                1
      NSSA Translation:                No NSSA Always Translate:           No
      NSSA Type 7 ABR Default Type:     1 NSSA Type 7 Default Originated:  No
      Active Interfaces:                2 Demand Circuit Capability:      Yes
      Area Networks:                    0 Area Routers:                     2
      Reachable ASBRs:                  2 Reachable ABRs:                   1
      Number of LSAs:                   7 Noage LSAs:                       0
      Area Checksum:           0x0003D1CF Dynamic Config Change Flag:  0x0000
 
                        --Area ranges--
     Address          Mask             Active Advertise Cost
     153.2.0.0        255.255.0.0          No       Yes

Area Index
The position of the OSPF area relative to other areas. This is used internally by IBM's OSPF implementation.

Stub Default Cost
The cost for a default route flooded into the NSSA when the router is acting as an area border router (ABR).

NSSA Translation
Indicates whether or not an area border router for an NSSA is translating type 7 NSSA advertisements to type 5 external advertisements.

NSSA Type 7 ABR Default Type
When an area border router originates a type 7 default advertisement, this indicates the external metric type (1 or 2).

Active Interfaces
The number of active interfaces within this area.

Area Networks
The number of networks within this area.

Reachable ASBRs
The number of autonomous system boundary routers (ASBRs) that can be reached from this NSSA.

Number of LSAs
Number of LSAs in the area link state database.

Area Checksum
Checksum for all the LSAs in the area link state database.

Configured Interfaces
The number of configured interfaces within this area. This number includes both active and inactive interfaces.

Inhibit Summaries
Indicates whether or not the router (when acting as an area border router) will inhibit the advertisement of type 3 LSAs.

NSSA Default Type
Metric type for a type 7 NSSA default advertisement.

NSSA Always Translate
Indicates whether unconditional NSSA translation was configured for the NSSA. However, a router will only unconditionally translate when it is acting as an area border router.

NSSA Type 7 Default Originated
Indicates whether a type 7 default is currently originated by the area border router.

Demand Circuit Capability
Indicates whether or not the interface will be treated as a demand circuit for purposes of flooding LSAs. Over demand circuits, LSAs will be flooded with the DoNotAge bit set over this interface only when there is an actual change to the LSA. Refer to RFC 1793 for more information.

Area Routers
The number of routers within this area.

Reachable ABRs
The number of area border routers (ABRs) that are reachable from within this area.

Noage LSAs
Number of Noage LSAs in the area (as defined in RFC 1795).

Dynamic Config Change Flag
Flag that represents what was changed during the last dynamic re-configuration (used by development).

Address
IP address of the NSSA range.

Mask
IP mask of the address.

Active
Indicates whether or not the area border router has discovered type 7 advertisements in the NSSA range.

Advertise Cost
The advertised metric in the translated type 5 LSA.

AS-external advertisements

Use the AS-external advertisements command to list the AS external advertisements belonging to the OSPF routing domain. One line is printed for each advertisement. Each advertisement is defined by the following three parameters: its link state type (always 5 for AS external advertisements), its link state ID (called the LS destination), and the advertising router (called the LS originator).

Syntax:

as-external

Example: as-external

Type LS-destination  LS-originator   Seq-Number  Age Unreach Xsum   Options
  5  10.13.64.0      10.1.62.1       0x80000385 1422         0x7791 E,DC
  5  10.14.64.0      10.1.62.1       0x80000385 1420         0x6B9C E,DC
 
                # advertisements:       2
                Checksum total:         0xE32D

Type
Always 5 for AS external advertisements.

LS destination
Indicates an IP network/subnet number. These network numbers belong to other Autonomous Systems.

LS originator
Advertising router.

Unreach
Indicates how long the destination associated with a Link State Advertisement (LSA) that is DoNotAge has been unreachable. If the LSA is DoNotAge, DA will appear after the Age column before the Unreach column. If the LSA is not DoNotAge, there will be blanks.

Seqno, Age, Xsum
It is possible for several instances of an advertisement to be present in the OSPF routing domain at any one time. However, only the most recent instance is kept in the OSPF link state database (and printed by this command). The LS sequence number (Seqno), LS age (Age) and LS checksum fields (Xsum) are compared to see which instance is most recent. The LS age field is expressed in seconds. Its maximum value is 3600.

Options
These are the Link State Options, which are the optional OSPF capabilities supported by the OSPF object corresponding to the advertisement. These capabilities include:

E
Indicates that type 5 (external advertisements) are supported in the area corresponding to the advertisement. This is always set for type 5 (external advertisements).

T
Routing based on IP TOS (Type of Service) is supported.

MC
Multicast forwarding is supported. This will only be set in advertisements originated by routers with MOSPF enabled.

DC
Demand circuits are supported as described in RFC 1793.

At the end of the display, the total number of AS external advertisements is printed, along with a checksum total over all of their contents. The checksum total is simply the 32-bit sum (carries discarded) of the individual advertisement's LS checksum fields. This information can be used to quickly determine whether two OSPF routers have synchronized databases.

Database Summary

Use the database summary command to display a description of the contents of a particular OSPF area's link state database. AS external advertisements are omitted from the display. A single line is printed for each advertisement. Each advertisement is defined by the following three parameters: its link state type (called Type), its link state ID (called the LS destination) and the advertising router (called the LS originator).

Syntax:

database
area-id

Example: database 0.0.0.0

Type LS-destination  LS-originator   Seq-Number  Age Unreach Xsum   Options
  1  10.1.62.1       10.1.62.1       0x80004963  496         0xBC15 E,DC
  1  10.1.62.2       10.1.62.2       0x800250FF    6         0xCA6F E,DC
  ·
                # advertisements:       99
                Checksum total:         0x2CD102 

Type
Separate LS types are numerically displayed:: type 1 (router links advertisements), type 2 (network links advertisements), type 3 (network summaries), type 4 (AS boundary router summaries), and type 6 (group-membership-LSAs).

LS destination
Indicates what is being described by the advertisement.

LS originator
Advertising router.

Unreach
Indicates how long the destination associated with a Link State Advertisement (LSA) that is DoNotAge has been unreachable. If the LSA is DoNotAge, DA will appear after the Age column before the Unreach column. If the LSA is not DoNotAge, there will be blanks.

Seqno, Age, Xsum
It is possible for several instances of an advertisement to be presenting the OSPF routing domain at any one time. However, only the most recent instance is kept in the OSPF link state database (and printed by this command). The LS sequence number (Seqno), LS age (Age) and LS checksum fields (Xsum) are compared to see which instance is most recent. The LS age field is expressed in seconds. Its maximum value is 3600.

Options
These are the Link State Options, which are the optional OSPF capabilities supported by the OSPF object corresponding to the advertisement. These capabilities include:

E
Indicates that type 5 (external advertisements) are supported in the area corresponding to the advertisement. This is always set for type 5 (external advertisements).

T
Routing based on IP TOS (Type of Service) is supported.

MC
Multicast forwarding is supported. This will only be set in advertisements originated by routers with MOSPF enabled.

DC
Demand circuits are supported as described in RFC 1793.

At the end of the display, the total number of advertisements in the area database is printed, along with a checksum total over all of their contents. The checksum total is simply the 32-bit sum (carries discarded) of the individual advertisement's LS checksum fields. This information can be used to quickly determine whether two OSPF routers have synchronized databases.
Note:When comparing multicast-capable to non-multicast routers, the above database checksum (and also # advertisements) will not necessarily match, because non-multicast routers do not handle or store group-membership-LSAs. Also, if demand circuit processing is active in the OSPF routing domain or OSPF stub area, the database checksum will most likely be different among routers with demand circuits. Refer to RFC 1793 for more information.

Dump Routing Tables

Use the dump routing tables command to display all the routes that have been calculated by OSPF and are now present in the routing table. Its output is similar in format to the IP monitoring's dump routing tables command.

Syntax:

dump

Example: dump

            Type   Dest net         Mask     Cost Age   Next hop(s)
            SPE1   0.0.0.0          00000000  4    3    128.185.138.39
            SPF*   128.185.138.0    FFFFFF00  1    1    Eth/0
            Sbnt   128.185.0.0      FFFF0000  1    0    None
            SPF    128.185.123.0    FFFFFF00  3    3    128.185.138.39
            SPF    128.185.124.0    FFFFFF00  3    3    128.185.138.39
            SPF    192.26.100.0     FFFFFF00  3    3    128.185.131.10
            RIP    197.3.2.0        FFFFFF00  10   30   128.185.131.10
            RIP    192.9.3.0        FFFFFF00  4    30   128.185.138.21
            Del    128.185.195.0    FFFFFF00  16   270  None
 
            Default gateway in use.
 
            Type Cost Age  Next hop
            SPE1 4    3    128.185.138.39
 
            Routing table size: 768 nets (36864 bytes), 36 nets known

Type (route type)
Indicates how the route was derived.

Sbnt - Indicates that the network is subnetted; such an entry is a place-holder only.

Dir - Indicates a directly connected network or subnet.

RIP - Indicates the route was learned through the RIP protocol.

Del - Indicates the route has been deleted.

Stat - Indicates a statically configured route.

BGP - Indicates routes learned through the BGP protocol.

BGPR - Indicates routes learned through the BGP protocol that are readvertised by OSPF and RIP.

Fltr - Indicates a routing filter.

SPF - Indicates that the route is an OSPF intra-area route.

SPIA - Indicates that it is an OSPF inter-area routes.

SPE1, SPE2 - Indicates OSPF external routes (type 1 and 2 respectively).

Rnge - Indicates a route type that is an active OSPF area address range and is not used in forwarding packets.

Dest net
IP destination network/subnet.

Mask
IP address mask.

Cost
Route Cost.

Age
For RIP and BGP routes, the time that has elapsed since the routing table entry was last refreshed.

Next Hop
IP address of the next router on the path toward the destination host. Also displayed is the interface type used by the sending router to forward the packet.

An asterisk (*) after the route type indicates the route has a static or directly connected backup. A percent sign (%) after the route type indicates that RIP updates will always be accepted for this network/subnet.

A number in parentheses at the end of the column indicates the number of equal-cost routes to the destination. The first hops belonging to these routes can be displayed with the IP monitoring's route command.

Interface Summary

Use the interface summary command to display statistics and parameters related to OSPF interfaces. If no arguments are given (see Example 1), a single line is printed summarizing each interface. If an interface's IP address is given (see Example 2), detailed statistics for that interface will be displayed.

Syntax:

interface
interface-ip-address

Example 1: interface

            Ifc Address      Phys    assoc. Area     Type   State   #nbrs #adjs
            9.67.217.66      TKR/0   2.2.2.2        Brdcst   64        0    0
            128.185.123.22   PPP/0   0.0.0.0        Brdcst   64        0    0

Ifc Address
Interface IP address.

Phys
Displays the physical interface.

Assoc Area
Attached area ID.

Type
Can be either Brdcst (broadcast, e.g., an Ethernet interface), P-P (a point-to-point network, e.g., a synchronous serial line), P-2-MP (point-to-multipoint, e.g., a Frame-Relay network), Multi (non-broadcast, multi-access, e.g., an X.25 connection) or VLink (an OSPF virtual link).

State
Can be one of the following: 1 (down), 2 (looped back), 4 (waiting), 8 (point-to-point), 16 (DR other), 32 (backup DR) or 64 (designated router).

#nbrs
Number of neighbors. This is the number of routers whose hellos have been received, plus those that have been configured.

#adjs
Number of adjacencies. This is the number of neighbors in state Exchange or greater. These are the neighbors with whom the router has synchronized or is in the process of synchronization.

Example 2: interface 128.185.125.22

            Interface address:      128.185.125.22
            Attached area:          0.0.0.1
            Physical interface:     Eth/1
            Interface mask:         255.255.255.0
            Interface type:         Brdcst
            State:                  32
            Authentication Type:    None
            Designated Router:      128.185.184.34
                        Backup DR:              128.185.184.11
 
            DR Priority:       1  Hello interval:   10  Rxmt interval:     5
            Dead interval:    40  TX delay:          1  Poll interval:     0
            Demand Circuit   off  Max pkt size:   2044  TOS 0 cost:        1
 
            # Neighbors:       0  # Adjacencies:     0  # Full adjs.:      0
            # Mcast floods:    0  # Mcast acks:      0
 
            MC forwarding:    on  DL unicast:      off  IGMP monitor:     on
            # MC data in:      0  # MC data acc:     0  # MC data out:     0
 
            Network Capabilities:    Broadcast    Real Network
            IGMP polls snt:   75  IGMP polls rcv:    0  Unexp polls:       0
 
            IGMP reports:      0

Interface Address
Interface IP address.

Attached Area
Attached area ID.

Physical interface
Displays physical interface type and number.

Interface Mask
Displays interface subnet mask.

Interface type
Can be either Brdcst (broadcast, for example, an Ethernet interface), PP (a point-to-point network, for example, a synchronous serial line), P-2-MP (point-to-multipoint, for example, a Frame-Relay network), Multi (non-broadcast, multiaccess, for example, an X.25 connection) and VLink (an OSPF virtual link).

State
Can be one of the following: 1 (Down), 2 (Looped back), 4 (Waiting), 8 (Point-to-Point), 16 (DR other), 32 (Backup DR), 64 (Designated router) or 128 (Full).

Authentication Type
Indicates the type of authentication active for the interface. Supported types are none or simple.

Designated Router
IP address of the designated router.

Backup DR
IP address of the backup designated router.

DR Priority
Displays priority assigned to designated router.

Hello interval
Displays the current hello interval value.

Rxmt interval
Displays the current retransmission interval value.

Dead interval
Displays the current dead interval value.

TX delay
Displays the current transmission delay value.

Poll interval
Displays the current poll interval value.

Max pkt size
Displays the maximum size for an OSPF packet sent out this interface.

Demand circuit
Indicates whether or not demand circuit processing is active on the interface.

TOS 0 cost
Displays the interface's TOS 0 cost.

# Neighbors
Number of neighbors. This is the number of routers whose hellos have been received, plus those that have been configured.

# Adjacencies
Number of adjacencies. This is the number of neighbors in state Exchange or greater.

# Full adj
Number of full adjacencies. The number of full adjacencies is the number of neighbors whose state is Full (and therefore, with which the router has synchronized databases).

# Mcast Floods
Number of link state updates flooded out the interface (not counting retransmissions).

# Mcast acks
Number of link state acknowledgments flooded out the interface (not counting retransmissions).

MC forwarding
Displays whether multicast forwarding has been enabled for the interface.

DL unicast
Displays whether multicast datagrams are to be forwarded as data-link multicasts or as data-link unicasts.

IGMP monitor
Displays whether IGMP is enabled on the interface.

# MC data in
Displays the number of multicast datagrams that have been received on this interface and then successfully forwarded.

# MC data acc
Displays the number of multicast datagrams that have been successfully forwarded.

# MC data out
Displays the number of datagrams that have been forwarded out the interface (either as data-link multicasts or data-link unicasts).

Network Capabilities
Displays the network capabilities for the interface.

IGMP polls sent
Displays the number of IGMP Host Membership Queries that have been sent out the interface.

IGMP polls rcv
Displays the number of IGMP Host Membership Queries that have been received on the interface.

Unexp polls
Displays the number of IGMP Host Membership Queries that have been received on the interface that were unexpected (that is, received when the router itself was sending them).

IGMP reports
Displays the number of IGMP Host Membership Reports received on the interface.

Nbr node: type and ID
Displays the identity of the upstream node if the router were supposed to receive datagrams on this interface. Type here is an integer from 1 to 3, with 1 indicating router, 2 indicating transit net and 3 indicating stub net.

Join

Use the join command to establish the router as a member of a multicast group.

This command is similar to the join command in the OSPF configuration monitoring with two exceptions:

When the router is the member of a multicast group, it responds to pings and SNMP queries sent to the group address.

Syntax:

join
multicast-group-address

Example: join 224.185.0.0

Leave

Use the leave command to remove a router's membership in a multicast group. This will keep the router from responding to pings and SNMP queries sent to the group address.

This command is similar to the leave command in the OSPF configuration monitoring with two differences:

Syntax:

leave
multicast-group-address

Example: leave 224.185.0.0

Mcache

Use the mcache command to display a list of currently active multicast cache entries. Multicast cache entries are built on demand, whenever the first matching multicast datagram is received. There is a separate cache entry (and therefore a separate route) for each datagram source network and destination group combination.

Cache entries are cleared on topology changes (for example, a point-to-point line in the MOSPF system going up or down), and on group membership changes.

Syntax:

mcache

Example 1: mcache

                 0: TKR/0           1: SDLC/0          2: FR/0
                 3: Internal
 
            Source          Destination     Count   Upst    Downstream
            133.1.169.2     225.0.1.10      8       Local   2 (4),3
            133.1.169.2     225.0.1.20      8       Local   2 (4),3
            3.3.3.3         225.0.1.10      8       2       3

Source
Source network/subnet of matching datagrams.

Destination
Destination group of matching datagrams.

Count
Displays the number of received datagrams that have matched the cache entry.

Upst
Displays the neighboring network/router from which the datagram must be received in order to be forwarded. When this reads as "none," the datagram will never be forwarded.

Downstream
Displays the total number of downstream interfaces/neighbors to which the datagram will be forwarded. When this is 0, the datagram will not be forwarded.

There is more information in a multicast forwarding cache entry. A cache entry can be displayed in detail by providing the source and destination of a matching datagram on the command line. If a matching cache entry is not found, one is built. A sample of this command is shown in Example 2.

Example 2: mcache 128.185.182.9 224.0.1.2

            source Net:     128.185.182.0
            Destination:    224.0.1.2
            Use Count:      472
            Upstream Type:  Transit Net
            Upstream ID:    128.185.184.114
            Downstream:     128.185.177.11 (TTL = 2)

In addition to the information shown in the short form of the mcache command, the following fields are displayed:

Upstream Type
Indicates the type of node from which the datagram must be received in order to be forwarded. Possible values for this field are "none" (indicating that the datagram will not be forwarded), "router" (indicating that the datagram must be received over a point-to-point connection), "transit network," "stub network," and "external" indicating that the datagram is expected to be received from another Autonomous System).

Downstream
Prints a separate line for each interface or neighbor to which the datagram will be sent. A TTL value is also given, indicating that datagrams forwarded out of or to this interface must have at least the specified TTL value in their IP header. When the router is itself a member of the multicast group, a line specifying "internal Application" appears as one of the downstream interfaces/neighbors.

Mgroups

Use the mgroups command to display the group membership of the router's attached interfaces. Only the group membership for those interfaces on which the router is either designated router or backup designated router are displayed.

Syntax:

mgroups

Example: mgroups

                          Local Group Database
            Group             Interface                 Lifetime (secs)
 
           224.0.1.1         128.185.184.11 (Eth/1)       176
           224.0.1.2         128.185.184.11 (Eth/1)       170
           224.1.1.1         Internal                     1

Group
Displays the group address as it has been reported (via IGMP) on a particular interface.

Interface
Displays the interface address to which the group address has been reported (via IGMP).

The router's internal group membership is indicated by a value of "internal." For these entries, the lifetime field (see below) indicates the number of applications that have requested membership in the particular group.

Lifetime
Displays the number of seconds that the entry will persist if Membership Reports cease to be heard on the interface for the given group.

Mstats

Use the mstats command to display various multicast routing statistics. The command indicates whether multicast routing is enabled and whether the router is an inter-area and/or inter-AS multicast forwarder.

Syntax:

mstats

Example:

mstats
 
              MOSPF forwarding:       Disabled
              Inter-area forwarding:  Disabled
              DVMRP forwarding:       Enabled
              PIM forwarding:         Disabled
 
Datagrams received:           10143  Datagrams fwd (multicast):  10219
Datagrams fwd (unicast):          0  Locally delivered:              0
Unreachable source:               0  Unallocated cache entries:      0
Off multicast tree:               0  Unexpected DL multicast:        0
Buffer alloc failure:             0  TTL scoping:                    0
Administrative filtering:       235
 
# DVMRP routing entries:          5  # DVMRP entries freed:          0
# fwd cache alloc:                1  # fwd cache freed:              0
# fwd cache GC:                   0  # local group DB alloc:         0
# local group DB free:            0

MOSPF forwarding
Displays whether the router will forward IP multicast datagrams.

Inter-area forwarding
Displays whether the router will forward IP multicast datagrams between areas.

DVMRP forwarding
Displays whether the router is configured to use DVMRP for multicast routing.

Datagrams received
Displays the number of multicast datagrams received by the router (datagrams whose destination group lies in the range 224.0.0.1 - 224.0.0.255 are not included in this total).

Datagrams (ext source)
Displays the number of datagrams that have been received whose source is outside the AS.

Datagrams fwd (multicast)
Displays the number of datagrams that have been forwarded as data-link multicasts (this includes packet replications, when necessary, so this count could very well be greater than the number received).

Datagrams fwd (unicast)
Displays the number of datagrams that have been forwarded as data-link unicasts.

Locally delivered
Displays the number of datagrams that have been forwarded to internal applications.

No matching rcv interface
Displays the count of those datagrams that were received by a non-inter-AS multicast forwarder on a non-MOSPF interface.

Unreachable source
Displays a count of those datagrams whose source address was unreachable.

Unallocated cache entries
Displays a count of those datagrams whose cache entries could not be created due to resource shortages.

Off multicast tree
Displays a count of those datagrams that were not forwarded either because there was no upstream neighbor or no downstream interfaces/neighbors in the matching cache entry.

Unexpected DL multicast
Displays a count of those datagrams that were received as data-link multicasts on those interfaces that have been configured for data-link unicast.

Buffer alloc failure
Displays a count of those datagrams that could not be replicated because of buffer shortages.

TTL scoping
Indicates those datagrams that were not forwarded because their TTL indicated that they could never reach a group member.

Administrative filtering.
Displays the number of datagrams discarded because of outbound filtering.

DVMRP routing entries
Displays the number of DVMRP routing entries.

DVMRP entries freed
Indicates the number of DVMRP entries that have been freed. The size will be the number of routing entries minus the number of entries freed.

# fwd cache alloc
Indicates the number of cache entries allocated. The current forwarding cache size is the number of entries allocated ("# fwd cache alloc") minus the number of cache entries freed ("# fwd cache freed").

# fwd cache freed
Indicates the number of cache entries freed. The current forwarding cache size is the number of entries allocated ("# fwd cache alloc") minus the number of cache entries freed ("# fwd cache freed").

# fwd cache GC
Indicates the number of cache entries were cleared because they were not recently used and the cache overflowed.

# local group DB alloc
Indicates the number of local group database entries allocated. The number allocated ("# local group DB alloc") minus the number freed ("# local group DB free") equals the current size of the local group database.

# local group DB free
Indicates the number of local group database entries freed. The number allocated ("# local group DB alloc") minus the number freed ("# local group DB free") equals the current size of the local group database.

The number of cache hits can be calculated as the number of datagrams received ("Datagrams received") minus the total of datagrams discarded due to "No matching rcv interface," "Unreachable source" and "Unallocated cache entries," and minus "# local group DB alloc." The number of cache misses is simply "# local group DB alloc."

Neighbor

Use the neighbor command to display statistics and parameters related to OSPF neighbors. If no arguments are given (see Example 1), a single line is printed summarizing each neighbor. If a neighbor's IP address is given (see Example 2), detailed statistics for that neighbor will be displayed.

Syntax:

neighbor

Example 1: neighbor

            Neighbor addr   Neighbor ID     State  LSrxl  DBsum  LSreq  Ifc
            128.185.125.39  128.185.136.39  128      0     0       0   PPP/1
            128.185.125.41  128.185.128.41    8      0     0       0   PPP/1
            128.185.125.38  128.185.125.38    8      0     0       0   PPP/1
            128.185.125.25  128.185.129.25    8      0     0       0   PPP/1
            128.185.125.40  128.185.129.40  128      0     0       0   PPP/1
            128.185.125.24  128.185.126.24    8      0     0       0   PPP/1

Neighbor addr
Displays the neighbor address.

Neighbor ID
Displays the neighbor's OSPF router ID.

Neighbor State
Can be one of the following: 1 (Down), 2 (Attempt), 4 (Init), 8 (2-Way), 16 (ExStart), 32 (Exchange), 64 (Loading) or 128 (Full).

LSrxl
Displays the size of the current link state retransmission list for this neighbor.

DBsum
Displays the size of the database summary list waiting to be sent to the neighbor.

LSreq
Displays the number of more recent advertisements that are being requested from the neighbor.

Ifc
Displays the interface shared by the router and the neighbor.

Example 2: neighbor 128.185.138.39

The meaning of most of the displayed fields is given in section 10 of the OSPF specification (RFC 2178).

            Neighbor IP address:    128.185.184.34
            OSPF Router ID:         128.185.207.34
            Neighbor State:         128
            Physical interface:     Eth/1
            DR choice:              128.185.184.34
            Backup choice:          128.185.184.11
            DR Priority:            1
            Nbr options:            E,MC
            Alternate TOS 0 cost:   5
DB summ qlen:      0  LS rxmt qlen:      0  LS req qlen: 0
Last hello:        7  No Hello         Off
 
# LS rxmits:     108  # Direct acks:    13  # Dup LS rcvd: 572
# Old LS rcvd:     2  # Dup acks rcv:  111  # Nbr losses:   29
# Adj. resets:    30

Neighbor IP addr
Neighbor IP address.

OSPF router ID
Neighbor's OSPF router ID.

Neighbor State
Can be one of the following: 1 (Down), 2 (Attempt), 4 (Init), 8 (2-Way), 16 (ExStart), 32 (Exchange), 64 (Loading) or 128 (Full).

Physical interface
Displays physical interface type and number of the router and neighbor's common network.

DR choice, backup choice, DR priority
Indicates the values seen in the last hello received from the neighbor.

Nbr options
Indicates the optional OSPF capabilities supported by the neighbor. These capabilities are denoted by E (processes type 5 externals; when this is not set the area to which the common network belongs has been configured as a stub), T (can route based on TOS) and MC (can forward IP multicast datagrams). This field is valid only for those neighbors in state Exchng or greater.

Alternate TOS 0 cost
For point-to-multipoint interfaces, indicates an alternate TOS 0 cost for this neighbor. In the router's type 1 (router links) LSA, this cost will be advertised rather than the interface's TOS 0 cost.

DBsumm qlen
Indicates the number of advertisements waiting to be summarized in Database Description packets. It should be zero except when the neighbor is in state Exchange.

LS rxmt qlen
Indicates the number of advertisements that have been flooded to the neighbor, but not yet acknowledged.

LS req qlen
Indicates the number of advertisements that are being requested from the neighbor in state Loading.

Last hello
Indicates the number of seconds since a hello has been received from the neighbor.

# LS rxmits
Indicates the number of retransmissions that have occurred during flooding.

# direct acks
Indicates responses to duplicate link state advertisements.

# Dup LS rcvd
Indicates the number of duplicate retransmissions that have occurred during flooding.

# Old LS rcvd
Indicates the number of old advertisements received during flooding.

# Dup acks rcvd
Indicates the number of duplicate acknowledgments received.

# Nbr losses
Indicates the number of times the neighbor has changed to Down state.

# Adj. resets
Counts entries to state ExStart.

Ping

See "Ping" for an explanation of the Ping command.

Policy

Use the OSPF policy command to display the OSPF AS boundary route import policy for the router.

Syntax:

policy

Example:

       AS Boundary Importation Policy - ospf
     Checksum 0x9A23  Longest-Match Application
 
     IP Address      IP Mask           Match  Index  Type
     -----------------------------------------------------
     9.0.0.0         255.0.0.0         Range  1      Include
     10.0.0.0        255.0.0.0         Range  2      Exclude
         Match Conditions:  Protocol: BGP
     10.1.1.0        255.255.255.0     Range  4      Include
     0.0.0.0         0.0.0.0           Range  0      Include
     0.0.0.0         0.0.0.0           Range  3      Include
         Match Conditions:  Protocol: Static
                            Gateway IP Address Range: 153.2.2.20/255.255.255.255
     0.0.0.0         0.0.0.0           Range  7      Include
         Policy Actions:    Set Manual Tag: 0xACEEACEE
     0.0.0.0         0.0.0.0           Range  8      Include
         Match Conditions:  Protocol: RIP
         Policy Actions:    Set Metric: 999

Reset

Use the OSPF reset command to dynamically modify the OSP routing configuration without restarting the router. For more information see "Dynamically Changing OSPF Configuration Parameters".
Note:During a restart, OSPF routes will be retained in the routing table to maintain IP forwarding.

Syntax:

reset
ospf

Example:

OSPF>interface
 
Ifc Address      Phys    assoc. Area     Type    State   Auth   #nbrs  #adjs
153.2.2.25       Eth/0   0.0.0.1         Brdcst   16     None       3      2
10.69.1.1        FR/0    0.0.0.0         P-2-MP    8     None       1      1
 
OSPF>
*t 6
 
OSPF Config>delete interface 10.69.1.1
OSPF Config>
*t 5
 
OSPF>reset ospf
OSPF>interface
 
Ifc Address      Phys    assoc. Area     Type    State   Auth   #nbrs  #adjs
153.2.2.25       Eth/0   0.0.0.1         Brdcst   16     None       3      2

Traceroute

See "Traceroute" for an explanation of the Traceroute command.

Routers

Use the routers command to display all router routes that have been calculated by OSPF and are now present in the routing table. With the dump routing tables command, the Net field indicates that the destination is a network. The routers command covers all other destinations.

Syntax:

routers

Example:

            DType RType Destination       AREA          Cost   Next hop(s)
 
             ASBR  SPF   128.185.142.9    0.0.0.1         1   128.185.142.9
             Fadd  SPF   128.185.142.98   0.0.0.1         1    0.0.0.0
             Fadd  SPF   128.185.142.7    0.0.0.1         1    0.0.0.0
             Fadd  SPF   128.185.142.48   0.0.0.1         1    0.0.0.0
             Fadd  SPF   128.185.142.111  0.0.0.1         1    0.0.0.0
             Fadd  SPF   128.185.142.38   0.0.0.1         1    0.0.0.0
             Fadd  SPF   128.185.142.11   0.0.0.1         1    0.0.0.0
               BR  SPF   128.185.142.9    0.0.0.2         1   128.185.142.9
               BR  SPF   128.185.142.9    0.0.0.2         2   128.185.184.114
             Fadd  SPF   128.185.142.47   0.0.0.2         1    0.0.0.0
 

DType
Indicates destination type:

Net
Indicates that the destination is a network

ASBR
Indicates that the destination is an AS boundary router

ABR
Indicates that the destination is an area border router

Fadd
Indicates a forwarding address (for external routes)

RType
Indicates route type and how the route was derived:

SPF
indicates that the route is an intra-area route (comes from the Dijkstra calculation)

SPIA
indicates that it is an inter-area route (comes from considering summary link advertisements).

Destination
Destination router's OSPF ID. For Type D entries, one of the router's IP addresses is displayed (which corresponds to a router in another AS).

Area
Displays the AS area to which it belongs.

Cost
Displays the route cost.

Next hop
Address of the next router on the path toward the destination host. A number in parentheses at the end of the column indicates the number of equal-cost routes to the destination.

Size

Use the size command to display the number of LSAs currently in the link state database, categorized by type.

Syntax:

size

Example:

            # Router-LSAs:            6
            # Network-LSAs:           2
            # Summary-LSAs:           45
            # Summary Router-LSAs:    6
            # AS External-LSAs:       2
            # Group-membership-LSAs:  11
 
            # Intra-area routes:      11
            # Inter-area routes:      15
            # Type 1 external routes: 0
            # Type 2 external routes: 2

Statistics

Use the statistics command to display statistics generated by the OSPF routing protocol. The statistics indicate how well the implementation is performing, including its memory and network utilization. Many of the fields displayed are confirmation of the OSPF configuration.

Syntax:

statistics

Example:

OSPF Router ID:         17.17.17.17
                     External comparison:    Type 2
                     RFC 1583 compatibility: Yes
                     Multicast OSPF [MOSPF]: Yes [Inter-Area Multicast Forwarder]
                     Demand circuit support: Yes
                     Least Cost Area Ranges: No
                     AS boundary capability: Yes
                     Import external routes: POLICY ospf
                     Orig. default route:    No [0,0.0.0.0]
                     Default route cost:     [1, Type 2]
                     Default forward. addr:  0.0.0.0
 
       Attached areas:                   2  Estimated # external routes:    400
       Estimated # OSPF routers:       100  Estimated heap usage:        104000
       OSPF packets rcvd:            16971  OSPF packets rcvd w/ errs:    16269
       Transit nodes allocated:        286  Transit nodes freed:            283
       LS adv. allocated:             1439  LS adv. freed:                 1421
       Queue headers alloc:             32  Queue headers avail:             32
       Maximum LSA size:              2048
 
       # Dijkstra runs:                 12  Incremental summ. updates:        0
       Incremental VL updates:           0  Buffer alloc failures:            0
       Multicast pkts sent:          16982  Unicast pkts sent:               10
       LS adv. aged out:                 0  LS adv. flushed:                  5
       Ptrs To Invalid LS adv:           0  Incremental ext. updates:        29
       LSA Max Random Initial Age:       0  LSA MINARRIVAL rejects:           1
 
       External LSA database:
       Current state:               Normal
       Number of LSAs:                  11  Number of overflows:              0

OSPF Router ID
Displays the router's OSPF ID.

External comparison
Displays the external route type used by the router when importing external routes.

RFC 1583 compatibility
Indicates whether or not OSPF AS external route computation will be compatible with RFC 1583.

Import external routes
Displays which external routes will be imported. If a route filter import policy has been configured for AS Boundary Routing, that policy is displayed.

Orig default route
Displays whether the router will advertise an OSPF default route. If the value is "Yes" and a nonzero number is displayed in parentheses, then a default route will be advertised only when a route to the network exists.

Default route cost
Displays the cost and type of the default route (if advertised).

Default forward addr
Displays the forwarding address specified in the default route (if advertised).

Attached areas
Indicates the number of areas that the router has active interfaces to.

Estimated heap usage
Rough indication of the size of the OSPF link state database (in bytes).

Transit nodes
Allocated to store router links and network links advertisements.

LS adv.
Allocated to store summary link and AS external link advertisements.

Queue headers
Form lists of link state advertisements. These lists are used in the flooding and database exchange processes; if the number of queue headers allocated is not equal to the number freed, database synchronization with some neighbor is in progress.

# Dijkstra runs
Indicates how many times the OSPF routing table has been calculated from scratch.

Maximum LSA size
The maximum size LSA that can be originated by this router. This is the minimum of the value configured through OSPF configuration and the maximum packet size computed or configured through general configuration.

Incremental summ updates, incremental VL updates
Indicates that new summary link advertisements have caused the routing table to be partially rebuilt.

Buffer alloc failures.
Indicates buffer allocation failures. The OSPF system will recover from temporary lack of packet buffers.

Multicast pkts sent
Covers OSPF hello packets and packets sent during the flooding procedure.

Unicast pkts sent
Covers OSPF packet retransmissions and the Database Exchange procedure.

LS adv. aged out
Counts the number of advertisements that have hit 60 minutes. Link state advertisements are aged out after 60 minutes. Usually they will be refreshed before this time.

LS adv. flushed
Indicates number of advertisements removed (and not replaced) from the link state database.

Ptrs to Invalid LS adv
Displays number of advertisements in the database which were malformed and could not be interpreted.

Incremental ext. updates.
Displays number of changes to external destinations that are incrementally installed in the routing table.

LSA Max Random Initial Age
Displays number of maximum initial random age for self-originated LSAs.

LSA MINARRIVAL Rejects
Displays number of LSAs rejected due to receiving a new instance in less than MINARRIVAL (1 second).

External LSA database:
Provides information about the LSA database:

Current state
Whether the database of current AS external LSAs is in normal or overload state.

Number of LSA
The number of external LSAs currently in the database

Number of overflows
Number of times the external AS LSA database has entered overload state.

Weight

Use the weight command to change the cost of one of the routers OSPF interfaces. This new cost is immediately flooded throughout the OSPF routing domain, causing routes to be updated accordingly.

The cost of the interface will revert to its configured cost whenever the router is restarted or reloaded. To make the cost change permanent, you must reconfigure the appropriate OSPF interface after invoking the weight command. This command will cause a new router links advertisement to be originated, unless the cost of the interface does not change.

Syntax:

weight
ip-interface-address new-cost

Example: weight 128.185.124.22 2


OSPF Dynamic Reconfiguration Support

This section describes dynamic reconfiguration (DR) as it affects Talk 6 and Talk 5 commands.

CONFIG (Talk 6) Delete Interface

OSPF supports the CONFIG (Talk 6) delete interface command with no restrictions.

GWCON (Talk 5) Activate Interface

OSPF supports the GWCON (Talk 5) activate interface command with the following consideration:

If OSPF was not running before, but has now been configured, you need to reboot to enable OSPF and activate the new interface.

All OSPF interface-specific commands are supported by the GWCON (Talk 5) activate interface command.

GWCON (Talk 5) Reset Interface

OSPF supports the GWCON (Talk 5) reset interface command with the following considerations:

All OSPF interface-specific commands are supported by the GWCON (Talk 5) reset interface command.

GWCON (Talk 5) Component Reset Commands

OSPF supports the following OSPF-specific GWCON (Talk 5) reset commands:

GWCON, Protocol OSPF, Reset OSPF Command

Description:
Re-reads the SRAM and reinitializes OSPF.

Network Effect:
If multicast support is enabled or disabled, or if demand circuit support is enabled or disabled, or if the router ID is changed, OSPF will be restarted. All adjacencies will be lost.

Limitation:

If the amount of heap memory required is larger than that currently available, because of an increased number of routes or routers, the router must be restarted.

All OSPF commands are supported by the GWCON, protocol ospf, reset ospf command.

GWCON, Protocol IP, Reset IP Command

Description:
Re-reads the SRAM and reinitializes OSPF.

Network Effect:
If multicast support is enabled or disabled, or if demand circuit support is enabled or disabled, or if the router ID is changed, OSPF will be restarted. All adjacencies will be lost.

Limitation:

If the amount of heap memory required is larger than that currently available, because of an increased number of routes or routers, the router must be restarted.

All OSPF commands are supported by the GWCON, protocol ip, reset ip command.

GWCON (Talk 5) Temporary Change Commands

OSPF supports the following GWCON commands that temporarily change the operational state of the device. These changes are lost whenever the device is reloaded, restarted, or you execute any dynamically reconfigurable command.
Commands
GWCON, protocol ospf, weight
GWCON, protocol ospf, join
GWCON, protocol ospf, leave


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]